package com.lywz.biz.common.entity.goodfood;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.lywz.core.entity.AbstractEntity;
import com.lywz.core.entity.EntityAnnotation;

/**
 * @author qianqi yangbolin
 * @date 2010-5-1
 */
@Entity
@NamedQueries( {
        @NamedQuery(name = "classicFood.queryById", query = "from ClassicFood where classicFoodId =:classicFoodId"),
        @NamedQuery(name = "classicFood.topTenList", query = "from ClassicFood order by isShowInMain desc"),
        @NamedQuery(name = "classicFood.getAllClassicFoodList", query = "from ClassicFood order by isShowInMain desc") })
@EntityAnnotation
@Table(name = "t_classicFood")
public class ClassicFood extends AbstractEntity {

    private static final long serialVersionUID = -8833374996307176769L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer classicFoodId;

    private String classicFoodName;

    private String imageMainUrl;

    private String imageMinorUrl;

    private String material;

    private String point;

    private String makeMethod;

    private String eatMethod;

    private String description;

    private Date addTime;

    private Integer isShowInMain;

    public Integer getClassicFoodId() {
        return classicFoodId;
    }

    public String getMaterial() {
        return material;
    }

    public String getPoint() {
        return point;
    }

    public String getMakeMethod() {
        return makeMethod;
    }

    public String getEatMethod() {
        return eatMethod;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setClassicFoodId(Integer classicFoodId) {
        this.classicFoodId = classicFoodId;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public void setPoint(String point) {
        this.point = point;
    }

    public void setMakeMethod(String makeMethod) {
        this.makeMethod = makeMethod;
    }

    public void setEatMethod(String eatMethod) {
        this.eatMethod = eatMethod;
    }

    public Date getAddTime() {
        return addTime;
    }

    public Integer getIsShowInMain() {
        return isShowInMain;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public void setIsShowInMain(Integer isShowInMain) {
        this.isShowInMain = isShowInMain;
    }

    public String getImageMainUrl() {
        return imageMainUrl;
    }

    public void setImageMainUrl(String imageMainUrl) {
        this.imageMainUrl = imageMainUrl;
    }

    public String getImageMinorUrl() {
        return imageMinorUrl;
    }

    public void setImageMinorUrl(String imageMinorUrl) {
        this.imageMinorUrl = imageMinorUrl;
    }

    /**
     * @return the classicFoodName
     */
    public String getClassicFoodName() {
        return classicFoodName;
    }

    /**
     * @param classicFoodName the classicFoodName to set
     */
    public void setClassicFoodName(String classicFoodName) {
        this.classicFoodName = classicFoodName;
    }

}
